export default [
  {
    path: "/meter",
    meta: {
      title: "计量表管理",
      rank: 7
    },
    children: [
      {
        path: "/user/meter/list",
        name: "userMeterList",
        component: () => import("@/views/meter/userList.vue"),
        meta: {
          title: "我的计量",
          roles: [3]
        }
      }
    ]
  },
  {
    path: "/order",
    meta: {
      title: "订单管理"
    },
    children: [
      {
        path: "/user/order/list",
        name: "userOrderList",
        component: () => import("@/views/order/userList.vue"),
        meta: {
          title: "我的订单",
          roles: [3]
        }
      }
    ]
  },
  {
    path: "/house",
    meta: {
      title: "我的房产"
    },
    children: [
      {
        path: "/user/house/list",
        name: "userHouseList",
        component: () => import("@/views/house/userList.vue"),
        meta: {
          title: "我的房产",
          roles: [3]
        }
      }
    ]
  },
  {
    path: "/parking",
    meta: {
      title: "我的车位"
    },
    children: [
      {
        path: "/user/parking/list",
        name: "userParkingList",
        component: () => import("@/views/parking/userList.vue"),
        meta: {
          title: "我的车位",
          roles: [3]
        }
      }
    ]
  },
  {
    path: "/shops",
    meta: {
      title: "我的商铺"
    },
    children: [
      {
        path: "/user/shops/list",
        name: "userShopsList",
        component: () => import("@/views/shops/userList.vue"),
        meta: {
          title: "我的商铺",
          roles: [3]
        }
      }
    ]
  },
  {
    path: "/complain",
    meta: {
      title: "我的投诉"
    },
    children: [
      {
        path: "/user/complain/list",
        name: "userComplainList",
        component: () => import("@/views/complain/userList.vue"),
        meta: {
          title: "我的投诉",
          roles: [3]
        }
      }
    ]
  },
  {
    path: "/repair",
    meta: {
      title: "我的报修"
    },
    children: [
      {
        path: "/user/repair/list",
        name: "userRepairList",
        component: () => import("@/views/repair/userList.vue"),
        meta: {
          title: "我的报修",
          roles: [3]
        }
      }
    ]
  }
];
